//
//  ZCBottomView.m
//  BaiSi
//
//  Created by 张灿 on 16/5/5.
//  Copyright © 2016年 张灿. All rights reserved.
//

#import "ZCBottomView.h"

@interface ZCBottomView ()

@property (weak, nonatomic) IBOutlet UIButton *dingButton;

@property (weak, nonatomic) IBOutlet UIButton *caiButton;

@property (weak, nonatomic) IBOutlet UIButton *shareButton;

@property (weak, nonatomic) IBOutlet UIButton *cmtButton;
@end

@implementation ZCBottomView

- (void)setItem:(ZCThemeItem *)item
{
    [super setItem:item];
    
    [self.dingButton setTitle:item.ding forState:UIControlStateNormal];
    [self.caiButton setTitle:item.cai forState:UIControlStateNormal];
    [self.shareButton setTitle:item.repost forState:UIControlStateNormal];
    [self.cmtButton setTitle:item.comment forState:UIControlStateNormal];
}

- (IBAction)dingClick:(UIButton *)sender {
    NSLog(@"赞");
    sender.selected = !sender.selected;
}

- (IBAction)caiClick:(UIButton *)sender {
    NSLog(@"踩");
    sender.selected = !sender.selected;
}

- (IBAction)shareClick:(UIButton *)sender {
    NSLog(@"分享");
}

- (IBAction)cmtClick:(UIButton *)sender {
    NSLog(@"评论");
}

@end
